const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true
})
module.exports = {
  devServer: {
    port: 8888,
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        // target: `http://192.168.3.49:8080`,
        target: `http://39.107.49.94:9201`,
        changeOrigin: true,
        logLevel: 'info',
        pathRewrite: {
          ["^" + process.env.VUE_APP_BASE_API]: "",
        },
      },
    },
  },
  chainWebpack: (config) => {
    config.plugins.delete("prefetch")
  }
}
